package com.rop.znyx.search;

import com.rop.znyx.common.result.Result;
import com.rop.znyx.model.search.SkuEs;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * User: Rop
 * Date: 2023/7/19
 * Time: 15:55
 * Description:
 */

@FeignClient("service-search")
public interface SearchFeignClient {

    /**
     * 查询上架商品
     */
    @ApiOperation(value = "查询上架商品")
    @GetMapping("api/search/inner/findHotSkuList")
    Result<List<SkuEs>> findHotSkuList();

    @ApiOperation(value = "更新商品incrHotScore")
    @GetMapping("api/search/inner/incrHotScore/{skuId}")
    Boolean incrHotScore(@PathVariable("skuId") Long skuId);
}
